home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Updates⁄New / AppointmentMaster™ v1.1.1 / stack.txt < prev   
Encoding:
Text File  |  1988-06-01  |  20.8 KB  |  360 lines

  1. -- stack: in.1 
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x0 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 2
  11. -- first background id: 2621
  12. -- card count: 5
  13. -- first card id: 3049
  14. -- list block id: 3218
  15. -- print block id: 3532
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 84864 bytes
  21. -- stack block size: 9728 bytes
  22. -- created by hypercard version: 0x00000000
  23. -- compacted by hypercard version: 0x00000000
  24. -- modified by hypercard version: 0x00000000
  25. -- opened by hypercard version: 0x00000000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. on closeStack
  69.   global whosThere
  70.   put "Have Yourself a SUPER GOOD DAY" && whosThere && "!" into message box
  71.   doMenu "Compact Stack"
  72.   RemShow Meo
  73.   show menubar
  74.   hide message box
  75.   visual effect zoom out
  76. end closeStack
  77.  
  78.  
  79.  
  80. on update theDate
  81.   global whosThere
  82.   ask "What is your name, Please?" with field id 26
  83.   put it into field id 26
  84.   put it into whosThere
  85.   put the long date into field id 5 of card id 3049
  86.   theSchedule schedule
  87. end update
  88.  
  89.  
  90.  
  91. on theSchedule schedule
  92.   set cursor to 4
  93.   put empty into field id 6
  94.   put empty into field id 7
  95.   put empty into field id 8
  96.   put empty into field id 9
  97.   put empty into field id 10
  98.   put empty into field id 11
  99.   put empty into field id 12
  100.   put empty into field id 13
  101.   put empty into field id 14
  102.   put empty into field id 15
  103.   put empty into field id 16
  104.   put empty into field id 17
  105.   put empty into field id 30   --field "Links" is a hidden field
  106.   get field id 5
  107.   convert it to seconds
  108.   put it into thisDay
  109.   put 1 into lineNumber
  110.   repeat with x = 2 to (the number of cards)
  111.     get (field id 2 of card x)  --field "Date"
  112.     if it is empty then next repeat
  113.     convert it to seconds
  114.     if it = thisDay then
  115.       put (the id of card x) into line lineNumber of field "Links"
  116.       add 1 to lineNumber
  117.       get field id 47 of card x  --field "My Name"
  118.       if it = field id 26 of card id 3049 then
  119.         get field id 43 of card x  --field "Appointment Time"
  120.         put it into apptTime
  121.         get field id 1 of card x   --field "ClientName"
  122.         put it into temp2
  123.         put the number of chars of temp2 into countChar
  124.         put 34 into maxChar
  125.         subtract countChar from maxChar
  126.         get field id 6 of card x  --field "ApptDetails"
  127.         put it into temp3
  128.         put "," after char maxChar of temp3
  129.         get the number of items of temp3
  130.         put empty into item 2 to it of temp3
  131.         put empty into last char of temp3
  132.         get apptTime  --a variable holding the appointment time.
  133.         if it ‚â• 0900 and it ‚⧠0914 or it ‚â• 900 and it ‚⧠914 or it = 9 then
  134.           put temp2 & "‚Äî" & temp3 into line 1 of field id 6
  135.         else
  136.           if it ‚â• 0915 and it ‚⧠0929 or it ‚â• 915 and it ‚⧠929 then
  137.             put temp2 && "‚Äî" & temp3 into line 2 of field id 6
  138.           else
  139.             if it ‚â• 0930 and it ‚⧠0944 or it ‚â• 930 and it ‚⧠944 then
  140.               put temp2 && "‚Äî" & temp3 into line 3 of field id 6
  141.             else
  142.               if it ‚â• 0945 and it ‚⧠0959 or it ‚â• 945 and it ‚⧠959 then
  143.                 put temp2 && "‚Äî" & temp3 into line 4 of field id 6
  144.               else
  145.                 if it ‚â• 1000 and it ‚⧠1014 or it = 10 then
  146.                   put temp2 && "‚Äî" & temp3 into line 1 of field id 7
  147.                 else
  148.                   if it ‚â• 1015 and it ‚⧠1029 then
  149.                     put temp2 && "‚Äî" & temp3 into line 2 of field id 7
  150.                   else
  151.                     if it ‚â• 1030 and it ‚⧠1044 then
  152.                       put temp2 && "‚Äî" & temp3 into line 3 of field id 7
  153.                     else
  154.                       if it ‚â• 1045 and it ‚⧠1059 then
  155.                         put temp2 && "‚Äî" & temp3 into line 4 of field id 7
  156.                       else
  157.                         if it ‚â• 1100 and it ‚⧠1114 or it = 11 then
  158.                           put temp2 && "‚Äî" & temp3 into line 1 of field id 8
  159.                         else
  160.                           if it ‚â• 1115 and it ‚⧠1129 then
  161.                             put temp2 && "‚Äî" & temp3 into line 2 of field id 8
  162.                           else
  163.                             if it ‚â• 1130 and it ‚⧠1144 then
  164.                               put temp2 && "‚Äî" & temp3 into line 3 of field id 8
  165.                             else
  166.                               if it ‚â• 1145 and it ‚⧠1159 then
  167.                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 8
  168.                               else
  169.                                 if it ‚â• 1200 and it ‚⧠1214 or it = 12 then
  170.                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 9
  171.                                 else
  172.                                   if it ‚â• 1215 and it ‚⧠1229 then
  173.                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 9
  174.                                   else
  175.                                     if it ‚â• 1230 and it ‚⧠1244 then
  176.                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 9
  177.                                     else
  178.                                       if it ‚â• 1245 and it ‚⧠1259 then
  179.                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 9
  180.                                       else
  181.                                         if it ‚â• 100 and it ‚⧠114 or it ‚â• 1300 and it ‚⧠1314 or it = 1 then
  182.                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 10
  183.                                         else
  184.                                           if it ‚â• 115 and it ‚⧠129 or it ‚â• 1315 and it ‚⧠1329 then
  185.                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 10
  186.                                           else
  187.                                             if it ‚â• 130 and it ‚⧠144 or it ‚â• 1330 and it ‚⧠1344 then
  188.                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 10
  189.                                             else
  190.                                               if it ‚â• 145 and it ‚⧠159 or it ‚â• 1345 and it ‚⧠1359 then
  191.                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 10
  192.                                               else
  193.                                                 if it ‚â• 200 and it ‚⧠214 or it ‚â• 1400 and it ‚⧠1414 or it = 2 then
  194.                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 11
  195.                                                 else
  196.                                                   if it ‚â• 215 and it ‚⧠229 or it ‚â• 1415 and it ‚⧠1429 then
  197.                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 11
  198.                                                   else
  199.                                                     if it ‚â• 230 and it ‚⧠244 or it ‚â• 1430 and it ‚⧠1444 then
  200.                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 11
  201.                                                     else
  202.                                                       if it ‚â• 245 and it ‚⧠259 or it ‚â• 1445 and it ‚⧠1459 then
  203.                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 11
  204.                                                       else
  205.                                                         if it ‚â• 300 and it ‚⧠314 or it ‚â• 1500 and it ‚⧠1514 or it = 3 then
  206.                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 12
  207.                                                         else
  208.                                                           if it ‚â• 315 and it ‚⧠329 or it ‚â• 1515 and it ‚⧠1529 then
  209.                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 12
  210.                                                           else
  211.                                                             if it ‚â• 330 and it ‚⧠344 or it ‚â• 1530 and it ‚⧠1544 then
  212.                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 12
  213.                                                             else
  214.                                                               if it ‚â• 345 and it ‚⧠359 or it ‚â• 1545 and it ‚⧠1559 then
  215.                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 12
  216.                                                               else
  217.                                                                 if it ‚â• 400 and it ‚⧠414 or it ‚â• 1600 and it ‚⧠1614 or it = 4 then
  218.                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 13
  219.                                                                 else
  220.                                                                   if it ‚â• 415 and it ‚⧠429 or it ‚â• 1615 and it ‚⧠1629 then
  221.                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  222.                                                                   else
  223.                                                                     if it ‚â• 430 and it ‚⧠444 or it ‚â• 1630 and it ‚⧠1644 then
  224.                                                                       put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  225.                                                                     else
  226.                                                                       if it ‚â• 445 and it ‚⧠459 or it ‚â• 1645 and it ‚⧠1659 then
  227.                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 13
  228.                                                                       else
  229.                                                                         if it ‚â• 500 and it ‚⧠514 or it ‚â• 1700 and it ‚⧠1714 or it = 5 then
  230.                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 14
  231.                                                                         else
  232.                                                                           if it ‚â• 515 and it ‚⧠529 or it ‚â• 1715 and it ‚⧠1729 then
  233.                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 14
  234.                                                                           else
  235.                                                                             if it ‚â• 530 and it ‚⧠544 or it ‚â• 1730 and it ‚⧠1744 then
  236.                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 14
  237.                                                                             else
  238.                                                                               if it ‚â• 545 and it ‚⧠559 or it ‚â• 1745 and it ‚⧠1759 then
  239.                                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 14
  240.                                                                               else
  241.                                                                                 if it ‚â• 600 and it ‚⧠614 or it ‚â• 1800 and it ‚⧠1814 or it = 6 then
  242.                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 15
  243.                                                                                 else
  244.                                                                                   if it ‚â• 615 and it ‚⧠629 or it ‚â• 1815 and it ‚⧠1829 then
  245.                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 15
  246.                                                                                   else
  247.                                                                                     if it ‚â• 630 and it ‚⧠644 or it ‚â• 1830 and it ‚⧠1844 then
  248.                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 15
  249.                                                                                     else
  250.                                                                                       if it ‚â• 645 and it ‚⧠659 or it ‚â• 1845 and it ‚⧠1859 then
  251.                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 15
  252.                                                                                       else
  253.                                                                                         if it ‚â• 700 and it ‚⧠714 or it ‚â• 1900 and it ‚⧠1914 or it = 7 then
  254.                                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 16
  255.                                                                                         else
  256.                                                                                           if it ‚â• 715 and it ‚⧠729 or it ‚â• 1915 and it ‚⧠1929 then
  257.                                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 16
  258.                                                                                           else
  259.                                                                                             if it ‚â• 730 and it ‚⧠744 or it ‚â• 1930 and it ‚⧠1944 then
  260.                                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 16
  261.                                                                                             else
  262.                                                                                               if it ‚â• 745 and it ‚⧠759 or it ‚â• 1945 and it ‚⧠1959 then
  263.                                                                                                 put temp2 &&"‚Äî" & temp3 into line 4 of field id 16
  264.                                                                                               else
  265.                                                                                                 if it ‚â• 800 and it ‚⧠814 or it ‚â• 2000 and it ‚⧠2014 or it = 8 then
  266.                                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 17
  267.                                                                                                 else
  268.                                                                                                   if it ‚â• 815 and it ‚⧠829 or it ‚â• 2015 and it ‚⧠2029 then
  269.                                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 17
  270.                                                                                                   else
  271.                                                                                                     if it ‚â• 830 and it ‚⧠844 or it ‚â• 2030 and it ‚⧠2044 then
  272.                                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 17
  273.                                                                                                     else
  274.                                                                                                       if it ‚â• 845 and it ‚⧠859 or it ‚â• 2045 and it ‚⧠2059 then
  275.                                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 17
  276.                                                                                                       end if
  277.                                                                                                     end if
  278.                                                                                                   end if
  279.                                                                                                 end if
  280.                                                                                               end if
  281.                                                                                             end if
  282.                                                                                           end if
  283.                                                                                         end if
  284.                                                                                       end if
  285.                                                                                     end if
  286.                                                                                   end if
  287.                                                                                 end if
  288.                                                                               end if
  289.                                                                             end if
  290.                                                                           end if
  291.                                                                         end if
  292.                                                                       end if
  293.                                                                     end if
  294.                                                                   end if
  295.                                                                 end if
  296.                                                               end if
  297.                                                             end if
  298.                                                           end if
  299.                                                         end if
  300.                                                       end if
  301.                                                     end if
  302.                                                   end if
  303.                                                 end if
  304.                                               end if
  305.                                             end if
  306.                                           end if
  307.                                         end if
  308.                                       end if
  309.                                     end if
  310.                                   end if
  311.                                 end if
  312.                               end if
  313.                             end if
  314.                           end if
  315.                         end if
  316.                       end if
  317.                     end if
  318.                   end if
  319.                 end if
  320.               end if
  321.             end if
  322.           end if
  323.         end if
  324.       end if
  325.     end if
  326.   end repeat
  327. end theSchedule
  328.  
  329.  
  330.  
  331. on RemShow Meo
  332.   get the date
  333.   convert it to dateItems
  334.   if item 3 of it = 1 or item 3 of it =15 then
  335.     beep 2
  336.     put "Paid your SHAREWARE FEE yet ? If So‚ÄîTHANKS! If No ‚Äî PLEASE DO"
  337.     wait 5 seconds
  338.     play boing
  339.     hide message box
  340.   end if
  341. end RemShow
  342.  
  343.  
  344.  
  345. on openStack
  346.   visual zoom in
  347.   hide menubar
  348.   hide message box
  349.   show field id 25  --Copyright field-DO NOT REMOVE
  350.   update theDate
  351.   RemShow Meo
  352. end openStack
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.